package demo3;

import demo2.TestDemo1;

/**
 * @Author 12629
 * @Description：
 */
class Student {

}

class Teacher {

}
//组合 其实就是代码的 实现方式
class School {
    public Student[] students;
    public Teacher[] teachers;

    public School () {
        this.students = new Student[10];
        this.teachers = new Teacher[10];
    }


}



public class Test extends TestDemo1{

    public void func() {
        TestDemo1 testDemo1 = new TestDemo1();
        //System.out.println(testDemo1.a);
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.func();

      /*  final int[] array1 = {1,2,3,4,5};
        array1 = new int[10];
*/
        // array1[0] = 99;

        /*

        int[] array = {1,2,3,4,5};
        array = new int[10];

         //1

         //2

        //3 都有错误

         */

        //常量  常量是不能进行修改的
        /*final int a = 10;
        a = 20;
        System.out.println(a);*/


       /* TestDemo1 testDemo1 = new TestDemo1();
        //System.out.println(testDemo1.a);
        System.out.println(super.a);*/
    }
}
